import request from './request';

export function saveSalary(data) {
  return request({
    url: '/wage/savesalary',
    method: 'post',
    data: data,
  });
}
export function updateSalary(data) {
  return request({
    url: '/wage/update',
    method: 'post',
    data:data,
  });
}

export function getSalary(id, date) {
  return request({
    url: `/wage/get?id=${id}&date=${date}`,
    method: 'get',
  });
}
